<template>
  <div>
    <button @click="fn">修改</button>
     <p>{{msg}}</p>
     <p>{{obj}}</p>
   </div>
</template>
 
<script>
export default {
  name: "MySon",
  components: {},
  props: ["msg","obj"],
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    fn(){
      // eslint-disable-next-line vue/no-mutating-props
      this.obj.name="2134"
    }
  }
};
</script>

<style scoped>
     
</style>